@import "../../common/common.scss";
#header {
  width: 100%;
  min-width: 1320px;
  height: 80px;
  padding-left: 120px;
  background: $bkColor;
  position: absolute;
  font-weight: 300;
  top: 0;
  left: 0;
  .logo {
    position: absolute;
    left: 175px;
    line-height: 80px;
    max-width: 500px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 22px;
    a {
      color: white;
    }
    &:hover {
      background: $navHoverColor;
    }
    padding: 0 15px;
  }
  .toolbar {
    float: right;
    height: 100%;
    padding: 0 10px;
  }
  .toolbar-item {
    height: 100%;
    display: inline-block;
    position: relative;
    .toolbar-item-btn {
      width: 100%;
      height: 100%;
      padding: 0 20px;
      position: relative;
      color: white;
      font-size: 14px;
      display: block;
      >span {
        position: relative;
        padding-left: 35px;
        letter-spacing: .02em;
        line-height: 80px;
      }
      cursor: pointer;
      &:hover {
        background: $navHoverColor;
      }
      .toolbar-item-icon {
        height: 30px;
        min-width: 20px;
        background: transparent;
        position: absolute;
        left: 0;
        top: -6px;
      }
    }
    .toolbar-skin-pop {
      visibility: hidden;
      opacity: 0;
      position: absolute;
      width: 120px;
      height: 300px;
      background: white;
      z-index: 9;
      top: 70px;
      text-align: center;
      padding-top: 10px;
      border: none;
      -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
      -webkit-transition: opacity 0.15s, visibility 0s 0.15s;
      transition: opacity 0.15s, visibility 0s 0.15s;
      .toolbar-skin-pop-item {
        width: 50px;
        height: 50px;
        display: block;
        margin: 15px auto;
      }
    }
  }
  .toolbar-item.user-item{
    .toolbar-item-btn {
      &:after{
        content: "";
        display: block;
        position: absolute;
        right: 15px;
        color: white;
        top: 50%;
        margin-top: -4px;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 8px solid white;
      }
      >span {
        margin-right: 10px;
        padding-left: 30px;
        >img {
          width: 25px;
          height: 25px;
          border-radius: 100%;
          background: white;
          position: absolute;
          left: 0;
          top: -4px;
        }
      }
    }
  }

  .topbar-info-dropdown-memu {
    visibility: hidden;
    opacity: 0;
    padding: 10px 0;
    position: absolute;
    left: 0;
    top: 100%;
    right: 0;
    float: left;
    list-style: none;
    background-color: #ffffff;
    background-clip: padding-box;
    z-index: 9;
    font-size: 12px;
    margin: 0;
    border: none;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    -webkit-transition: opacity 0.15s, visibility 0s 0.15s;
    transition: opacity 0.15s, visibility 0s 0.15s;
    li.topbar-menu-btn {
      line-height: normal;
      &:hover, &:focus {
        background-color: #f5f5f5;
      }
      letter-spacing: 0.02em;
      a {
        height: 40px;
        line-height: 39px;
        display: block;
        padding: 0 20px;
        clear: both;
        font-weight: normal;
        color: #333333;
        white-space: nowrap;
        min-width: 140px;
        -webkit-transition: all 0.15s;
        transition: all 0.15s;
      }
    }
  }
}

@media screen and (max-width: 1400px) {
  #header {
    min-width: 1320px;
    height: 53px;
    padding-left: 80px;
    .logo {
      left: 117px;
      line-height: 53px;
      max-width: 335px;
      font-size: 15px;
      padding: 0 10px;
    }
    .toolbar {
      padding: 0 6px;
    }
    .toolbar-item {
      .toolbar-item-btn {
        padding: 0 13px;
        font-size: 12px;
        >span {
          padding-left: 23px;
          letter-spacing: .02em;
          line-height: 53px;
        }
        .toolbar-item-icon {
          height: 20px;
          min-width: 13px;
          top: -2px;
        }
      }
      .toolbar-skin-pop {
        width: 80px;
        height: 201px;
        top: 47px;
        padding-top: 7px;
        .toolbar-skin-pop-item {
          width: 33px;
          height: 33px;
          margin: 10px auto;
          >img {
            width: 100%;
          }
        }
      }
    }
    .toolbar-item.user-item{
      .toolbar-item-btn {
        &:after{
          right: 10px;
          top: 50%;
          margin-top: -3px;
          border-left: 3px solid transparent;
          border-right: 3px solid transparent;
          border-top: 5px solid white;
        }
        >span {
          margin-right: 7px;
          padding-left: 20px;
          >img {
            width: 17px;
            height: 17px;
            top: -1px;
          }
        }
      }
    }

    .topbar-info-dropdown-memu {
      padding: 7px 0;
      li.topbar-menu-btn {
        letter-spacing: 0.02em;
        a {
          height: 27px;
          line-height: 26px;
          padding: 0 13px;
          min-width: 140px;
        }
      }
    }
  }
}